/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.biodas.jdas.validation;

import java.util.List;
import org.biodas.jdas.exceptions.ValidationException;
import org.biodas.jdas.schema.sources.COORDINATES;

/**
 *
 * @author jw12
 */
public class CoordinatesValidator {

    public String getMessage() {
        throw new UnsupportedOperationException("Not yet implemented");
    }

    /**
     * 
     * @param coord - coordinate we are searching for
     * @param coordinateS - coordinates list from the registry that we are searching
     * @return 
     */
    public String getRegistryId(COORDINATES coord, List<COORDINATES> coordinateS)throws ValidationException {
        for(COORDINATES coordinate:coordinateS){
            
            if(coordinate.getContent().equals(coord.getContent())){
                return coordinate.getUri();
            }
        }
        return "";//if no match found return empty string rather than null
    }
    
}
